package com.five.community.service;

import com.five.community.bean.Complaint;
import com.five.community.bean.Village;
import com.five.community.bean.vo.ComplaintVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ComplaintService {
    //投诉页面一览查询所有投诉信息
    List<ComplaintVo> selectAll() throws Exception;
    //根据投诉人员名字查询信息
    List<ComplaintVo> selectByName(String name) throws Exception;
    //根据id删除投诉条例
    void delete(long id) throws Exception;
    //投诉添加插入操作
    void insert(Complaint complaint) throws Exception;
    //通过id查询投诉信息
    Complaint selectById(long id) throws Exception;
    //编辑修改投诉信息
    void update(Complaint complaint) throws Exception;
    //获取分页信息
    PageInfo<ComplaintVo> getPageInfo(int pageNum, int pageSize) throws Exception;
}
